<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="css/common.css" type="text/css" />
<link href="css/adminstyle.css" rel="stylesheet" type="text/css">
<title>管理区域</title>

<script src="js/js.js"></script>

<script>

  function delc(id){

	if(confirm('确认要删除此栏目，将删除所属子栏目及信息'))	{

		self.location.href='news_delete.html?id='+id;

	}

}

</script>

</head>

<body>

<div id="man_zone">

<div style="background-color:#FFFFFF ">

<div class="search_condition">

<div style="margin-top:10px;margin-bottom:10px;">

<form method="get">

&nbsp;&nbsp;&nbsp;关键字 <input name="title" type="text" value="<?=getParamValue('title')?>" size="50" />

推荐类别
<select name="recom_status">
<option value="">选择</option>
<?=$newsRecoStatusOption?>
</select>
发布类型
<select name="type">
<option value="">选择</option>
<?=$newsTypeOption?>
</select>

发布状态
<select name="pub_status">
<option value="">选择</option>
<?=$newsPubStatusOption?>
</select>
<?if(isset($nav_id)&&$nav_id>0){?>
<input class="PublicBot" name="" type="button" onclick="window.location.href='nav_lists.html'" value="返回" />
&nbsp;&nbsp;&nbsp;
<input type="hidden" value="<?=$nav_id?>" name="nav_id" >
<input value="搜索" class="PublicBot" name="" type="submit" />
&nbsp;&nbsp;&nbsp;
<input class="PublicBot" name="" type="button" onclick="window.location.href='news_add.html?nav_id=<?=$nav_id?>'" value="添加" />
<?}else{?>
&nbsp;&nbsp;&nbsp;
<input value="搜索" class="PublicBot" name="" type="submit" />
<?}?>
</form>

</div>
</div>




<form method="get" action="news_delete.html" id="form">

  <table width="98%" border="0" align="center"  cellpadding="3" cellspacing="1" class="tableborder">

    <tr  class="header">

    <td width="25"></td>

      <td width="600" >新闻标题</td>
      <td width="300" >推荐类别</td>
      <td width="300" >发布类型</td>
      <td width="300" >发布状态</td>
      <td width="268" align="center">编辑</td>

    </tr>

    <?

    foreach($list as $v){

	?>

    <tr  bgcolor="#FFFFFF">

          <td align="center"><input type="checkbox" name="id[]" id="checkbox" value="<?=$v['id']?>"></td>

      <td ><?=$v['title']?></td>
      <td ><?=$newsRecoStatus[$v['recom_status']]?></td>
      <td ><?=$newsType[$v['type']]?></td>
      <td ><?=$newsPubStatus[$v['pub_status']]?></td>

      <td align="center">
      <a  onclick="delc(<?=$v['id']?>)"  href="#">删除</a>　　
      <a href="news_add.html?id=<?=$v['id']?>&nav_id=<?=$v['nav_id']?>">修改</a>
      </td>

    </tr> 

    <?

	}

	?>

 <tr  bgcolor="#FFFFFF">

 <td align="center"><input type="checkbox" name="chkall" id="checkbox"  onClick="CheckAll(this.form)"></td>

 <td colspan="6" align="center">

 <input type="button" name="delete" id="button" class="PublicBot" value="删除" onClick="submits('batchDelete')"> <?=$page?>

 </td>

 </tr>

  </table>

 </form>

</div>

</body>

</html>